package chapter5.java;

/**
 * @Author juzipi
 * @Date 2021/5/17 14:13
 * @Info
 */
public class Lambda {

    public void lambda(Func func){
        return;
    }

    public static void main(String[] args) {
        Lambda lambda = new Lambda();
        Func func = str -> true;

        lambda.lambda(func);
        lambda.lambda(str -> true);


    }

}


interface Func{
    boolean like(String str);
}
